﻿using System;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using AnyOffice.DAL;
using AnyOffice.Components;
namespace AnyOffice.general.news.manage
{
    public partial class delete : ModulePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int num = (Request.QueryString["page"] != null) ? int.Parse(Request.QueryString["page"]) : 1;
            int newsId = (Request.QueryString["news_id"] != null) ? int.Parse(Request.QueryString["news_id"]) : 0;
            new NewsDao().Delete(base.Conn, newsId);
            base.CloseConn();
            Response.Redirect("index1.aspx?page=" + num.ToString());
        } 

    }
}
